package com.kingdee.pda.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kingdee.pda.R;
import com.kingdee.pda.entity.FastAllotResponseBean;

import java.util.List;

/**
 * @author：dlj
 * @data：2021/9/16 15:10
 * @des：
 */
public class FastAllotOrderListAdapter extends BaseQuickAdapter<FastAllotResponseBean, BaseViewHolder> {

    private Context context;

    public FastAllotOrderListAdapter(Context context, List<FastAllotResponseBean> beans) {
        super(R.layout.item_fastallot_list, beans);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder viewHolder, FastAllotResponseBean item) {
        viewHolder.addOnClickListener(R.id.btn_detail)
                .setText(R.id.tv_orderNo, item.getBillno())
                .setText(R.id.tv_warehouse, "调出仓库->调入仓库：" + item.getWarehouseoutName() + "->" + item.getWarehouseinName())
                .setText(R.id.tv_skuTypes, "商品总数：" + item.getSum_inouttransferqty() + "")
                .setText(R.id.tv_date, item.getCreatetime());
    }
}
